package org.cnc.explain.util;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * org.cnc.spring.explain.util - StepCount
 *
 * @author tony-is-coding
 * @date 2022/7/4 17:29
 */
public class StepCount {
	private static final AtomicInteger STEP = new AtomicInteger(0);

	public static int get() {
		return STEP.incrementAndGet();
	}

	public static String getStep() {
		return "SpringBean 生命周期第[" + STEP.incrementAndGet() + "]步: ";
	}
}
